Why am I getting an AttributeError: 'list' object has no attribute 'shape' in my LSTM script